import request from '@/utils/request'

export default {
    getCompList(page,limit,compQuery) {
        return request({
            url:`/comp/findComp/${page}/${limit}`,
            method:'post',
            data:compQuery
          })
    },

    addComp(comp) {
        return request({
            url:`/comp/addComp`,
            method:'post',
            data:comp
          })
    },

    deleteComp(id) {
        return request({
            url:`/comp/deleteComp/${id}`,
            method:'get',
          })       
    },

    getCompById(id) {
        return request({
            url:`/comp/getCompById/${id}`,
            method:'get',
          })  
    },

    updateComp(formData) {
        return request({
            url:`/comp/updateComp`,
            method:'post',
            data:formData
          })        
    }


}

